package Jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName HeapOOM
 * @Description: TODO
 * @Author hl
 * @Date 2021/3/26
 * @Version V1.0
 **/
public class HeapOOM {
    static class OOMObject{

    }
    public static void main(String[] args) {
        List<OOMObject> list=new ArrayList<>();
        while(true){
            list.add(new OOMObject());
        }
    }
}
